package com.edu.blog.web;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.edu.blog.service.ArticleService;
import com.edu.blog.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author: LuckyBear
 * @date: 2018-10-30 15:14
 * @description:
 */

@Controller
public class UserController {

    @Autowired
    private UserService userService;

    @Autowired
    private ArticleService articleService;

    @RequestMapping("/login")
    public String login() {
        return "login";
    }

    @RequestMapping("/blogIndex")
    public String indexRecent() {
//        List<Article> articles = articleService
        return "blogIndex";
    }
}
